cmake_minimum_required(VERSION 3.10)

# 项目名称
project(run_test_rclocal)

# 设置C/C++标准
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 设置编译器
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC 0FF)

# 查找Qt5包
find_package(Qt5 REQUIRED COMPONENTS Core Gui Qml Widgets QUIET ) # 


################################################################################
# 包含目录
include_directories(${Qt5Core_INCLUDE_DIRS}
                    ${Qt5Widgets_INCLUDE_DIRS})

################################################################################
# 添加执行文件
add_executable(run_test_rclocal main.cpp) # ${UI_HEADERS}

# 链接Qt5和FFmpeg库
target_link_libraries(run_test_rclocal 
    Qt5::Core 
    Qt5::Gui
    Qt5::Widgets
)









